<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>留言栏</title>
</head>
<body>
    <div style="width: 1000px; height: 800px; margin: auto; border: solid #1E9FFF 2px; border-radius: 10px;">
        <div style="width: 90%; height: 500px; margin: auto; border-bottom: dashed #ff6600 2px;">
            <?php
                foreach ($_SESSION['lyb'] as $v)
            ?>
            <div style="width: 100%;min-height: 80px;border-bottom: dashed #1E9FFF 1px; margin-top: 10px; ">
                <div style="width: 100%;height: 30px;border-bottom: solid #F0F0F0 1px;">
                    <div style="width: 33%;float: left">留言人,<?php echo $v['ni']?></div>
                    <div style="width: 33%;float: left">留言人,<?php echo $v['ta']?></div>
                    <div style="width: 33%;float: left">留言人,<?php echo $v['times']?></div>
                </div>
                <div style="width: 100%";>
                    <?php
                        echo $v['ni']."对".$v['ta']."说".$v['content'];
                    ?>
                </div>
            </div>
                <input name="ni" type="text" required placeholder="请输入留言人" style="width: 100%; height: 40px;">
                <input type="text" name="ta" required placeholder="被留言人" style="width: 100%; height: 40px; margin-top: 10px;">
                <textarea required name="content" style="width: 100%; height: 100px; margin-top: 10px;" placeholder="请输入留言内容"></textarea>
                <input type="submit" value="立即留言" style="width: 100px; height: 35px;">
            </form>
        </div>
    </div>
</body>
</html>